From 6954e7cf52f098d83ce86b0832c1318e2150512b Mon Sep 17 00:00:00 2001 From: Joan Torres Lopez Date: Wed, 21 Jan 2026 14:23:34 +0100 Subject: [PATCH] authPrompt: Don't reset preemptiveAnswer when VERIFICATION_IN_PROGRESS PreemptiveAnswer wasn't being used in the case where verification is in progress and the smartcard is inserted, triggering a reset. This change ensures a preemptive answer will be used once smartcard service asks for the PIN. Part-of: (cherry picked from commit 9b78793ead5c3b80e39524c2ed5648798d3c27e7) --- js/gdm/authPrompt.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 2c6c61627..fe81c9914 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -736,7 +736,8 @@ export const AuthPrompt = GObject.registerClass({ this.verificationStatus = AuthPromptStatus.NOT_VERIFYING; this.cancelButton.reactive = this._hasCancelButton; this.cancelButton.can_focus = this._hasCancelButton; - this._preemptiveAnswer = null; + if (oldStatus !== AuthPromptStatus.VERIFICATION_IN_PROGRESS) + this._preemptiveAnswer = null; if (this._userVerifier) this._userVerifier.cancel(); -- 2.39.5